#pragma once
// 语法分析表

#ifndef __SYNTAX_H__
#define __SYNTAX_H__
#include "Word.h"
#include <string>
#include <vector>
using std::string;
using std::vector;
// 文法类
namespace compile
{
	class Syntax
	{
	public:
		Syntax();
		Syntax(string key[], string content[], unsigned int size);
		~Syntax();
		vector<Word>getWordVector() const;
		void printSyntax() const;
		string getEnter() const;

	private:
		vector<Word>word_vector;
		vector<string>splitSyntax(string str, char split_sign);
		string enter;
	};
}
#endif